package com.youoor.domain;

import java.io.Serializable;
import java.util.Date;

public class CardFavo implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -2919141556932894394L;

	private Long favoId;

    private Integer favoCardId;
    
    private Integer cardId;

    private Date ctime;

    private Date utime;


    public Long getFavoId() {
        return favoId;
    }

    public void setFavoId(Long favoId) {
        this.favoId = favoId;
    }


    public Integer getFavoCardId() {
		return favoCardId;
	}

	public void setFavoCardId(Integer favoCardId) {
		this.favoCardId = favoCardId;
	}

	public Integer getCardId() {
        return cardId;
    }

    public void setCardId(Integer cardId) {
        this.cardId = cardId;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getUtime() {
        return utime;
    }

    public void setUtime(Date utime) {
        this.utime = utime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CardFavo other = (CardFavo) that;
        return (this.getFavoId() == null ? other.getFavoId() == null : this.getFavoId().equals(other.getFavoId()))
            && (this.getFavoCardId() == null ? other.getFavoCardId() == null : this.getFavoCardId().equals(other.getFavoCardId()))
            && (this.getCardId() == null ? other.getCardId() == null : this.getCardId().equals(other.getCardId()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getUtime() == null ? other.getUtime() == null : this.getUtime().equals(other.getUtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFavoId() == null) ? 0 : getFavoId().hashCode());
        result = prime * result + ((getFavoCardId() == null) ? 0 : getFavoCardId().hashCode());
        result = prime * result + ((getCardId() == null) ? 0 : getCardId().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getUtime() == null) ? 0 : getUtime().hashCode());
        return result;
    }
}